import {getStore, setStore} from '@/utils/store'
import { defineStore } from "pinia";
 
const useCommonStore = defineStore("main", {
  state: () => ({
    fileList:[],
    downFileList:[],
    lang:getStore({name: 'lang'})
  }),
  getters: {},
  actions: {
    setUploadFileList(list){
      this.fileList = list
    },
    setDownLoadFileList(list){
      this.downFileList = list
    },
    setLang(val){
      this.lang = val
      setStore({name: 'lang',content: val})
    }
  },
});
export default useCommonStore;